package com.camps.sdk.utils;

/**
 * @Author ldaoliang
 * @Date create in 9:33 2021/9/2
 * @Description
 */
public class RepeatTimeUtils {

    /**
     * 发送时编码
     * @param repeatTime
     * @return
     */
    public static String sendEncode(String repeatTime) throws Exception{
        StringBuilder result = new StringBuilder();
        for(int i = 0 ; i < 7; i ++){
            result = result.append(i +1).append(repeatTime, i, i+1);
        }
        return result.toString();
    }

    /**
     * 接收结果时解码
     * @param repeatTime
     * @return
     */
    public static String receiveDecode(String repeatTime){
        return null;
    }

}
